home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(hit.hitTest(_root.Ball._x,_root.Ball._y,true) == true)
- {
- _root.platten();
- if(this._x < _root.ball._x)
- {
- _root.ball.xmove += 0.2;
- }
- if(_root.ball._x < this._x)
- {
- _root.ball.xmove -= 0.2;
- }
- if(this._y < _root.ball._y)
- {
- _root.ball.ymove += 0.2;
- }
- if(_root.ball._y < this._y)
- {
- _root.ball.ymove -= 0.2;
- }
- }
- }
-